package hibernate.billStream;

import java.util.*;
import hibernate.roomSystem.RoomType;
import hibernate.p.*;

public class CorporationEntity implements Depositer,Payer{
	
	private CorpInfo corporationInfo;
	private Long id;
	private Map adjustedRoomPriceList;
	
	public void setId(Long i){
		id=i;
	}
	
	public Long getId(){
		return id;
	}
	
	public void setCorporationInfo(CorpInfo corpInfo){
		corporationInfo=corpInfo;
	}
	
	public CorpInfo getCorporationInfo(){
		return corporationInfo;
	}
	
	public void setAdjustedRoomPriceList(Map adjustedRoomPriceList){
		this.adjustedRoomPriceList=adjustedRoomPriceList;
	}
	
	public Map getAdjustedRoomPriceList(){
		return adjustedRoomPriceList;
	}
	
	public boolean equals(Object obj){
		if(!(obj instanceof CorporationEntity))
			return false;
		else return this.id.equals(((CorporationEntity)obj).id);
	}
	
	public String toString(){
		return this.corporationInfo.toString();
	}
}
